Optimal. Leaf size=30 \[ \frac{(A+C) \sin (c+d x)}{d}-\frac{C \sin ^3(c+d x)}{3 d} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.0232144, antiderivative size = 30, normalized size of antiderivative = 1., number of steps used = 2, number of rules used = 1, integrand size = 19, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.053, Rules used = {3013} \[ \frac{(A+C) \sin (c+d x)}{d}-\frac{C \sin ^3(c+d x)}{3 d} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 3013
Rubi steps
\begin{align*} \int \cos (c+d x) \left (A+C \cos ^2(c+d x)\right ) \, dx &=-\frac{\operatorname{Subst}\left (\int \left (A+C-C x^2\right ) \, dx,x,-\sin (c+d x)\right )}{d}\\ &=\frac{(A+C) \sin (c+d x)}{d}-\frac{C \sin ^3(c+d x)}{3 d}\\ \end{align*}
Mathematica [A] time = 0.0154197, size = 50, normalized size = 1.67 \[ \frac{A \sin (c) \cos (d x)}{d}+\frac{A \cos (c) \sin (d x)}{d}-\frac{C \sin ^3(c+d x)}{3 d}+\frac{C \sin (c+d x)}{d} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A] time = 0.039, size = 33, normalized size = 1.1 \begin{align*}{\frac{1}{d} \left ({\frac{C \left ( 2+ \left ( \cos \left ( dx+c \right ) \right ) ^{2} \right ) \sin \left ( dx+c \right ) }{3}}+A\sin \left ( dx+c \right ) \right ) } \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [A] time = 1.01083, size = 46, normalized size = 1.53 \begin{align*} -\frac{{\left (\sin \left (d x + c\right )^{3} - 3 \, \sin \left (d x + c\right )\right )} C - 3 \, A \sin \left (d x + c\right )}{3 \, d} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A] time = 1.65117, size = 69, normalized size = 2.3 \begin{align*} \frac{{\left (C \cos \left (d x + c\right )^{2} + 3 \, A + 2 \, C\right )} \sin \left (d x + c\right )}{3 \, d} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [A] time = 0.717456, size = 56, normalized size = 1.87 \begin{align*} \begin{cases} \frac{A \sin{\left (c + d x \right )}}{d} + \frac{2 C \sin ^{3}{\left (c + d x \right )}}{3 d} + \frac{C \sin{\left (c + d x \right )} \cos ^{2}{\left (c + d x \right )}}{d} & \text{for}\: d \neq 0 \\x \left (A + C \cos ^{2}{\left (c \right )}\right ) \cos{\left (c \right )} & \text{otherwise} \end{cases} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [A] time = 1.16038, size = 46, normalized size = 1.53 \begin{align*} -\frac{{\left (\sin \left (d x + c\right )^{3} - 3 \, \sin \left (d x + c\right )\right )} C - 3 \, A \sin \left (d x + c\right )}{3 \, d} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]